package com.fengplus.demo.controller;

import com.fengplus.demo.entity.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/normal")
public class NormalController {

    @GetMapping("/a")
    public String a() {
        return "Provider A";
    }

    @GetMapping("/b")
    public CommonResult b() {
        return new CommonResult(200, null, "Provider B");
    }

}
